/**
 * ������ ����� �������� ������ ������� � ������ ���������� phonebook
 */
package ua.lk.phonebook.model;

import java.util.Date;
import java.util.EnumSet;

/**
 * ������������ ������������ � ���� ������
 *	
 */
public class User {
	private String username;
	private String department;
	private String roles_text;
	private String login;
	private String password;
	private int userId;
	private int departmentId;
	private boolean enabled;
	private Date startDate;
	private Date endDate;
	private EnumSet<Permissions> permissions;

	public User() {
		permissions = EnumSet.noneOf(Permissions.class);
	}
	
	@Override
	public String toString() {
		return "User [username=" + username + ", department=" + department
				+ ", roles_text=" + roles_text + ", login=" + login
				+ ", password=" + password + ", userId=" + userId
				+ ", departmentId=" + departmentId + ", enabled=" + enabled
				+ ", startDate=" + startDate + ", endDate=" + endDate
				+ ", permissions=" + permissions + "]";
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getRoles_text() {
		return roles_text;
	}
	public void setRoles_text(String roles_text) {
		this.roles_text = roles_text;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(int departmentId) {
		this.departmentId = departmentId;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public EnumSet<Permissions> getPermissions() {
		return permissions;
	}
	public void setPermissions(EnumSet<Permissions> permissions) {
		this.permissions = permissions;
	}
	
	
}
